package com.ftg.learn.chapter03;

/**
 * 宠物之家
 *
 * @author kangjx
 * @version 1.0
 * @date 2023/5/13 下午2:04
 */
public class LearnPetFamily {

    public static String salePet(PetEnum pet) {

        return "编号为" + pet.getId() + "  名字叫 "
                + pet.getName() + "  种类  " + pet.getType();
    }

    public static void main(String[] args) {
        System.out.println("小于同学买小猫");

        System.out.println("我与小国同学");

        String s = salePet(PetEnum.pet10001);
        System.out.println(s);
    }

}
